package com.icbc.dccsh.functions;

import java.util.ArrayList;

import net.objecthunter.exp4j.function.Function;

public class DeltaFunction  extends Function {
	public DeltaFunction(){
		super("delta", 2);
	}
	
	@Override
	public double apply(Object... arg) {
		double current = (Double)arg[0];
		double prior = (Double)arg[1];
		
		return current - prior;
	}
}
